package com.guang.syncronized.review_day1;

import org.openjdk.jol.info.ClassLayout;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

/**
 * @Description
 * @Author liguang
 * @Date 2022/10/22/18:26
 */
public class Syncronzied_NoLock_Bias_One {
    private final static Logger logger = LoggerFactory.getLogger(Syncronzied_NoLock_Bias_One.class);
    public static void main(String[] args) {
        Object object = new Object();
        logger.info("直接启动的时候，当前对象的对象头中是001,无锁不可偏向。打印对象头：{}", ClassLayout.parseInstance(object).toPrintable());
    }
}
